luci-app-sshtunnel: extract a public key from a key if no .pub
authorSergey Ponomarev <[email protected]>
Sun, 17 Dec 2023 14:52:58 +0000 (16:52 +0200)
committerPaul Donald <[email protected]>
Wed, 27 Dec 2023 20:28:58 +0000 (20:28 +0000)
commiteb1e175839f6ae0f1942fac8aa98cfa46ae4f95a
tree387854f469b67515da1956fd8948e254e9a62594
parent76fa6271027fc2ca8b114f4c3ea0e14c392abe56
luci-app-sshtunnel: extract a public key from a key if no .pub

For the Dropbear keys without a .pub we need to fall back and execute the -y command to extract a pubkey from a private.

Signed-off-by: Sergey Ponomarev <[email protected]>
(cherry picked from commit 8755aa3a71bf47ba65706a39c72cd294923d9285)
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_keys.js
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js